{extend name="layout/index" /}

{block name="title"}
<title>管理员列表</title>
{/block}
{block name="adminUser"}
	<a href="#" data-toggle="dropdown">
		<img src="/admin/images/user-4.png" alt="user-image" class="img-circle img-inline userpic-32" width="28" />
		<span>
			{$adminUser}
			<i class="fa-angle-down"></i>
		</span>
	</a>
{/block}
{block name="content"}
	<div class="panel panel-default">
				<div class="panel-heading">
					<h3 class="panel-title">管理员列表</h3>

					

					


					<div class="panel-options">
						<a href="#" data-toggle="panel">
							<span class="collapse-icon">&ndash;</span>
							<span class="expand-icon">+</span>
						</a>
						<a href="#" data-toggle="remove">
							×
						</a>
					</div>
				</div>
				<div class="panel-body">
					
					<div id="example-2_wrapper" class="dataTables_wrapper form-inline dt-bootstrap no-footer"><table class="table table-bordered table-striped dataTable no-footer" id="example-2" role="grid" aria-describedby="example-2_info">
						<thead>
							<tr role="row">
								<!-- <th class="no-sorting sorting_disabled" rowspan="1" colspan="1" style="width: 13px;" aria-label="">
									<div class="cbr-replaced">
									<div class="cbr-input">
									<input class="cbr cbr-done" type="checkbox">
									</div>
									<div class="cbr-state"><span></span></div>
									</div>
								</th> -->
								<th class="sorting_desc" tabindex="0" aria-controls="example-2" rowspan="1" colspan="1" style="width: 152px;" aria-label="Student Name: activate to sort column ascending" aria-sort="descending">ID</th>
								<th class="sorting" tabindex="0" aria-controls="example-2" rowspan="1" colspan="1" style="width: 191px;" aria-label="Average Grade: activate to sort column ascending">管理员用户名</th>
								<th class="sorting" tabindex="0" aria-controls="example-2" rowspan="1" colspan="1" style="width: 191px;" aria-label="Average Grade: activate to sort column ascending">管理员类别</th>
								<th class="sorting" tabindex="0" aria-controls="example-2" rowspan="1" colspan="1" style="width: 159px;" aria-label="Actions: activate to sort column ascending">操作</th>
								</tr>
						</thead>
						
						<tbody class="middle-align">
						{foreach name="adminUsers" id="vo"}							
						<tr role="row" class="odd">
								<!-- <td class="">
									<div class="cbr-replaced"><div class="cbr-input"><input class="cbr cbr-done" type="checkbox" value="{$vo.id}" name="id"></div><div class="cbr-state"><span></span></div></div>
								</td> -->
								<td class="">{$vo.id}</td>
								<td class="sorting_1">{$vo.username}</td>
								<td class="">{if condition="empty($vo.nopower)"} 超级管理员 {else} 普通管理员 {/if}</td>
								<td>
									<!-- <a href="{:url('admin/cateEdit')}?id={$vo.id}" class="btn btn-secondary btn-sm btn-icon icon-left">
										修改
									</a> -->
									{if condition="empty($vo.nopower)"}
									
									{else}
									<a href="{:url('admin/adminUserDelete')}?id={$vo.id}" class="btn btn-danger btn-sm btn-icon icon-left">
										删除
									</a>
									{/if}
									
								</td>
							</tr>
						{/foreach}
						</tbody>
					</table>
					<div class="row">
						 <div class="col-xs-6">
							<div class="dataTables_info" id="example-2_info" role="status" aria-live="polite">
							</div>
						</div>
						<div class="col-xs-6">
							<div class="dataTables_paginate paging_simple_numbers" id="example-2_paginate">
								{$adminUsers->render()}
							</div>
						</div> 
						
					</div>
					</div>
					
				</div>
			</div>
{/block}